/******/ (function(modules) { // webpackBootstrap
/******/ 	// The module cache
/******/ 	var installedModules = {};
/******/
/******/ 	// The require function
/******/ 	function __webpack_require__(moduleId) {
/******/
/******/ 		// Check if module is in cache
/******/ 		if(installedModules[moduleId]) {
/******/ 			return installedModules[moduleId].exports;
/******/ 		}
/******/ 		// Create a new module (and put it into the cache)
/******/ 		var module = installedModules[moduleId] = {
/******/ 			i: moduleId,
/******/ 			l: false,
/******/ 			exports: {}
/******/ 		};
/******/
/******/ 		// Execute the module function
/******/ 		modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ 		// Flag the module as loaded
/******/ 		module.l = true;
/******/
/******/ 		// Return the exports of the module
/******/ 		return module.exports;
/******/ 	}
/******/
/******/
/******/ 	// expose the modules object (__webpack_modules__)
/******/ 	__webpack_require__.m = modules;
/******/
/******/ 	// expose the module cache
/******/ 	__webpack_require__.c = installedModules;
/******/
/******/ 	// define getter function for harmony exports
/******/ 	__webpack_require__.d = function(exports, name, getter) {
/******/ 		if(!__webpack_require__.o(exports, name)) {
/******/ 			Object.defineProperty(exports, name, { enumerable: true, get: getter });
/******/ 		}
/******/ 	};
/******/
/******/ 	// define __esModule on exports
/******/ 	__webpack_require__.r = function(exports) {
/******/ 		if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
/******/ 			Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/******/ 		}
/******/ 		Object.defineProperty(exports, '__esModule', { value: true });
/******/ 	};
/******/
/******/ 	// create a fake namespace object
/******/ 	// mode & 1: value is a module id, require it
/******/ 	// mode & 2: merge all properties of value into the ns
/******/ 	// mode & 4: return value when already ns object
/******/ 	// mode & 8|1: behave like require
/******/ 	__webpack_require__.t = function(value, mode) {
/******/ 		if(mode & 1) value = __webpack_require__(value);
/******/ 		if(mode & 8) return value;
/******/ 		if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
/******/ 		var ns = Object.create(null);
/******/ 		__webpack_require__.r(ns);
/******/ 		Object.defineProperty(ns, 'default', { enumerable: true, value: value });
/******/ 		if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
/******/ 		return ns;
/******/ 	};
/******/
/******/ 	// getDefaultExport function for compatibility with non-harmony modules
/******/ 	__webpack_require__.n = function(module) {
/******/ 		var getter = module && module.__esModule ?
/******/ 			function getDefault() { return module['default']; } :
/******/ 			function getModuleExports() { return module; };
/******/ 		__webpack_require__.d(getter, 'a', getter);
/******/ 		return getter;
/******/ 	};
/******/
/******/ 	// Object.prototype.hasOwnProperty.call
/******/ 	__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/
/******/ 	// __webpack_public_path__
/******/ 	__webpack_require__.p = "";
/******/
/******/
/******/ 	// Load entry module and return exports
/******/ 	return __webpack_require__(__webpack_require__.s = "./src/scripts/register.js");
/******/ })
/************************************************************************/
/******/ ({

/***/ "./node_modules/art-template/lib/compile/runtime.js":
/*!**********************************************************!*\
  !*** ./node_modules/art-template/lib/compile/runtime.js ***!
  \**********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("/* WEBPACK VAR INJECTION */(function(global) {\n\n/*! art-template@runtime | https://github.com/aui/art-template */\n\nvar globalThis = typeof self !== 'undefined' ? self : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : {};\n\nvar runtime = Object.create(globalThis);\nvar ESCAPE_REG = /[\"&'<>]/;\n\n/**\n * 编码模板输出的内容\n * @param  {any}        content\n * @return {string}\n */\nruntime.$escape = function (content) {\n    return xmlEscape(toString(content));\n};\n\n/**\n * 迭代器，支持数组与对象\n * @param {array|Object} data\n * @param {function}     callback\n */\nruntime.$each = function (data, callback) {\n    if (Array.isArray(data)) {\n        for (var i = 0, len = data.length; i < len; i++) {\n            callback(data[i], i);\n        }\n    } else {\n        for (var _i in data) {\n            callback(data[_i], _i);\n        }\n    }\n};\n\n// 将目标转成字符\nfunction toString(value) {\n    if (typeof value !== 'string') {\n        if (value === undefined || value === null) {\n            value = '';\n        } else if (typeof value === 'function') {\n            value = toString(value.call(value));\n        } else {\n            value = JSON.stringify(value);\n        }\n    }\n\n    return value;\n}\n\n// 编码 HTML 内容\nfunction xmlEscape(content) {\n    var html = '' + content;\n    var regexResult = ESCAPE_REG.exec(html);\n    if (!regexResult) {\n        return content;\n    }\n\n    var result = '';\n    var i = void 0,\n        lastIndex = void 0,\n        char = void 0;\n    for (i = regexResult.index, lastIndex = 0; i < html.length; i++) {\n        switch (html.charCodeAt(i)) {\n            case 34:\n                char = '&#34;';\n                break;\n            case 38:\n                char = '&#38;';\n                break;\n            case 39:\n                char = '&#39;';\n                break;\n            case 60:\n                char = '&#60;';\n                break;\n            case 62:\n                char = '&#62;';\n                break;\n            default:\n                continue;\n        }\n\n        if (lastIndex !== i) {\n            result += html.substring(lastIndex, i);\n        }\n\n        lastIndex = i + 1;\n        result += char;\n    }\n\n    if (lastIndex !== i) {\n        return result + html.substring(lastIndex, i);\n    } else {\n        return result;\n    }\n}\n\nmodule.exports = runtime;\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../webpack/buildin/global.js */ \"./node_modules/webpack/buildin/global.js\")))\n\n//# sourceURL=webpack:///./node_modules/art-template/lib/compile/runtime.js?");

/***/ }),

/***/ "./node_modules/art-template/lib/runtime.js":
/*!**************************************************!*\
  !*** ./node_modules/art-template/lib/runtime.js ***!
  \**************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\n\nmodule.exports = __webpack_require__(/*! ./compile/runtime */ \"./node_modules/art-template/lib/compile/runtime.js\");\n\n//# sourceURL=webpack:///./node_modules/art-template/lib/runtime.js?");

/***/ }),

/***/ "./node_modules/webpack/buildin/global.js":
/*!***********************************!*\
  !*** (webpack)/buildin/global.js ***!
  \***********************************/
/*! no static exports found */
/***/ (function(module, exports) {

eval("var g;\n\n// This works in non-strict mode\ng = (function() {\n\treturn this;\n})();\n\ntry {\n\t// This works if eval is allowed (see CSP)\n\tg = g || new Function(\"return this\")();\n} catch (e) {\n\t// This works if the window reference is available\n\tif (typeof window === \"object\") g = window;\n}\n\n// g can still be undefined, but nothing to do about it...\n// We return undefined, instead of nothing here, so it's\n// easier to handle this case. if(!global) { ...}\n\nmodule.exports = g;\n\n\n//# sourceURL=webpack:///(webpack)/buildin/global.js?");

/***/ }),

/***/ "./src/scripts/controllers/register-index.js":
/*!***************************************************!*\
  !*** ./src/scripts/controllers/register-index.js ***!
  \***************************************************/
/*! no exports provided */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _views_register_art__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../views/register.art */ \"./src/scripts/views/register.art\");\n/* harmony import */ var _views_register_art__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_views_register_art__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _models_address__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/address */ \"./src/scripts/models/address.js\");\n/* harmony import */ var _views_adress_art__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../views/adress.art */ \"./src/scripts/views/adress.art\");\n/* harmony import */ var _views_adress_art__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_views_adress_art__WEBPACK_IMPORTED_MODULE_2__);\n\r\n\r\n\r\n\r\n\r\nclass register{\r\n    constructor(){\r\n        this.render()\r\n        \r\n    }\r\n  async render(){\r\n        let html=_views_register_art__WEBPACK_IMPORTED_MODULE_0___default()({})\r\n        $('#register-root').html(html)\r\n        let result=await _models_address__WEBPACK_IMPORTED_MODULE_1__[\"default\"].get();\r\n      //  console.log(result.content.rows)\r\n      let list=result.content.rows;\r\n      \r\n    \r\n      let   addressListHtml= _views_adress_art__WEBPACK_IMPORTED_MODULE_2___default()({\r\n          list\r\n      })\r\n       this.tap() \r\n      $('#adress-list').html(addressListHtml)  \r\n      $('.dd-list').on('tap',function(ev){ \r\n          $('#adress-num a em').html($(this).attr('data-code'))\r\n         $('#adress-list').css('display',\"none\");\r\n         ev.stopPropagation();\r\n      })\r\n    \r\n      this.doregister()\r\n     \r\n    }\r\n\r\n    tap(){\r\n        $('#adress-num a').on('tap',function(ev){\r\n        $('#adress-list').css('display',\"block\");\r\n        ev.stopPropagation();\r\n        console.log(555)\r\n        })\r\n    }\r\n\r\n    doregister(){\r\n        if(window.localStorage.userArr){//判断是否存在\r\n          var array = JSON.parse(window.localStorage.userArr);\r\n        }else{\r\n        var\tarray = [];//创建一个新数组\r\n        \r\n        }\r\n        var pass=document.querySelector('#pass')\r\n        var change=document.querySelector('#change')\r\n      \r\npass.oninput=function(){  \r\n    if(/^\\d+$/.test(pass.value)){\r\n         console.log(123)\r\n        change.innerHTML=\"弱\"\r\n    }else if(/^(?!\\d+$)(?![a-zA-Z]+$)[a-zA-Z\\d]+$/.test(pass.value)){\r\n        change.innerHTML=\"中\"\r\n      \r\n    }else if(/^(?!\\d+$)(?![a-zA-Z]+$)(?![@#$%^&]+$)[\\da-zA-Z@#$%^&]+$/.test(pass.value))\r\n    change.innerHTML=\"强\"\r\n}\r\n     $('.submit_btn').on('tap',function(){\r\n        var phone=$('.register').val()\r\n        var password=$('.pass').val() \r\n console.log(phone)\r\n        if(!(/^1[3456789]\\d{9}$/.test(phone))){ \r\n        alert(\"请输入正确手机号\");\r\n        return;\r\n     }\r\n//console.log(password)\r\n\r\n     for(var i =0;i<array.length;i++){\r\n        //判断是否有相同账号\r\n        if(phone==array[i].phone){\r\n            alert(\"该账号已存在\");\r\n            return;\r\n        }\r\n    }\r\n    var obj = {phone:phone,password:password,score:0}\r\n    array.push(obj);\r\n    window.localStorage.userArr=JSON.stringify(array);\r\n    alert(\"用户创建成功\");\r\n    location.href=\"../../login.html\"\r\n     })   \r\n    }\r\n}\r\nnew register()\n\n//# sourceURL=webpack:///./src/scripts/controllers/register-index.js?");

/***/ }),

/***/ "./src/scripts/models/address.js":
/*!***************************************!*\
  !*** ./src/scripts/models/address.js ***!
  \***************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n\r\nclass Ajax{\r\n    get(){\r\n        return $.ajax({\r\n            url:'/apo/register/getPhoneCountryCode.json'\r\n        })\r\n    }\r\n\r\n}\r\n/* harmony default export */ __webpack_exports__[\"default\"] = (new Ajax());\n\n//# sourceURL=webpack:///./src/scripts/models/address.js?");

/***/ }),

/***/ "./src/scripts/register.js":
/*!*********************************!*\
  !*** ./src/scripts/register.js ***!
  \*********************************/
/*! no exports provided */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _controllers_register_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./controllers/register-index */ \"./src/scripts/controllers/register-index.js\");\n/* harmony import */ var _models_address__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./models/address */ \"./src/scripts/models/address.js\");\n\r\n\r\n\n\n//# sourceURL=webpack:///./src/scripts/register.js?");

/***/ }),

/***/ "./src/scripts/views/adress.art":
/*!**************************************!*\
  !*** ./src/scripts/views/adress.art ***!
  \**************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

eval("var $imports = __webpack_require__(/*! ../../../node_modules/art-template/lib/runtime.js */ \"./node_modules/art-template/lib/runtime.js\");\nmodule.exports = function ($data) {\n    'use strict';\n    $data = $data || {};\n    var $$out = '', $each = $imports.$each, list = $data.list, value = $data.value, index = $data.index, $escape = $imports.$escape, value1 = $data.value1, index1 = $data.index1;\n    $$out += '<dl class=\"code_list_main\">\\r\\n';\n    $each(list, function (value, index) {\n        $$out += '\\r\\n<dt>';\n        $$out += $escape(value.name);\n        $$out += '</dt>\\r\\n';\n        $each(value.countryList, function (value1, index1) {\n            $$out += '\\r\\n<dd class=\"dd-list\" data-code=\"';\n            $$out += $escape(value1.code);\n            $$out += '\">';\n            $$out += $escape(value1.name);\n            $$out += ' </dd>\\r\\n';\n        });\n        $$out += '\\r\\n';\n    });\n    $$out += '\\r\\n</dl>\\r\\n';\n    return $$out;\n};\n\n//# sourceURL=webpack:///./src/scripts/views/adress.art?");

/***/ }),

/***/ "./src/scripts/views/register.art":
/*!****************************************!*\
  !*** ./src/scripts/views/register.art ***!
  \****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

eval("var $imports = __webpack_require__(/*! ../../../node_modules/art-template/lib/runtime.js */ \"./node_modules/art-template/lib/runtime.js\");\nmodule.exports = function ($data) {\n    'use strict';\n    $data = $data || {};\n    var $$out = '';\n    $$out += '<div class=\"register-container\">\\r\\n<div>\\r\\n<header>\\r\\n<h2>注册猎聘   <a href=\"login.html\"><span>登录</span></a></h2>\\r\\n</header>\\r\\n<div class=\"form\">\\r\\n<form>\\r\\n<div class=\"ipt\">\\r\\n<span id=\"adress-num\"><a href=\"#\"><em> 0086</em><span class=\"yo-ico\">&#xe65a;</span> </a> <div id=\"adress-list\"><dl class=\"code_list_main\"></dl> </div></sapn>\\r\\n<input class=\"register\" type=\"text\" placeholder=\"请输入常用手机号\" autocomplete=\"no\">\\r\\n</div>\\r\\n<div class=\"ipt\">\\r\\n<input type=\"password\" id=\"pass\" class=\"pass\"  placeholder=\"密码\" autocomplete=\"no\">\\r\\n<span id=\"change\"></span>\\r\\n</div>\\r\\n<div class=\"login-button\">\\r\\n<input type=\"submit\" class=\"submit_btn\" value=\"注册\" autocomplete=\"no\">\\r\\n<div>\\r\\n</form>\\r\\n</div>\\r\\n</div>\\r\\n</div>';\n    return $$out;\n};\n\n//# sourceURL=webpack:///./src/scripts/views/register.art?");

/***/ })

/******/ });